import React from 'react'

export default class Movie extends React.Component{

    constructor(){
        super()
        this.state = {
            msg:"这是class创建的组件"
        }
    }
    // 组件中必须有render函数
    render(){
        return <div>哈哈 --- {this.props.name} --- {this.props.age} --- {this.state.msg}</div>
    }
}